<?php
namespace app\shop\validate;

use think\Validate;

/**
 * 艺术家验证器
 */
class Banner extends Validate
{
    //定义验证规则
    protected $rule = [
        'title|标题' => 'require',
        'photo|图片'  => 'require',
//        'head|头像'      => 'require'
    ];

    //定义验证提示
    protected $message = [
        'title.require' => '请输入用户名',
        'photo.require'    => '请上传图片',
//        'head.email'      => '邮箱格式不正确',
    ];
}
